package com.xh.xyzp.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: xainghao
 * @Description:
 * @Date: 2025-04-13  21:18
 */
@Getter
@AllArgsConstructor
public enum DeliverStatusEnum {
    DELIVER(1, "投递中"),
    INTERVIEW(2, "面试中"),
    PASS(3, "面试通过"),
    FAILED(4, "面试没通过");

    private Integer key;
    private String value;

    public static DeliverStatusEnum getByKey(Integer deliverStatus) {
        for (DeliverStatusEnum item : DeliverStatusEnum.values()) {
            if (item.key.equals(deliverStatus)) {
                return item;
            }
        }
        return null;
    }
}
